//
//  DatePickerView.h
//  DatePickerView
//
//  Created by 刘琛 on 2017/12/11.
//  Copyright © 2017年 刘琛. All rights reserved.
//


#import <UIKit/UIKit.h>
typedef void(^DatePickerViewSuccessBlock)(NSDate *date);
typedef void(^DatePickerViewFailureBlock)(void);

@interface DatePickerView : UIView

+ (void)showDatePickerInView:(UIView *)view
                     success:(DatePickerViewSuccessBlock)success
                     failure:(DatePickerViewFailureBlock)fail;

//时间选择有最大时间最小时间
+ (void)showDatePickerInView:(UIView *)view
                    miniDate:(NSString *) miniDate
                     maxDate:(NSString *) maxDate
                     success:(DatePickerViewSuccessBlock) success
                     failure:(DatePickerViewFailureBlock) fail;

@end
